package com.ykq.dao;

import com.ykq.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

public interface UserDao {
    int deleteByPrimaryKey(Integer userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     *
     * @param username
     * @param password
     * @return
     */
    User selectByUsernameAndPassword(@Param("username") String username,@Param("password") String password);
}